package org.custom.spring.boot.entity.batch;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 交易信息 实体类
 *
 * @author 李坤
 * @date 2022/7/5 14:45
 */
@Data
@TableName("TRADE_INFO")
public class TradeInfo implements Serializable {

    @TableId
    @ApiModelProperty(name = "id", notes = "主键ID")
    private String id;

    @ApiModelProperty(name = "account", notes = "交易账户")
    private String account;

    @ApiModelProperty(name = "tradeAmount", notes = "交易金额")
    private BigDecimal tradeAmount;

    @ApiModelProperty(name = "tradeTime", notes = "交易时间")
    private Date tradeTime;

    /**
     * 有效标识（0：正常；1：冲销）
     */
    @ApiModelProperty(name = "state", notes = "有效标识")
    private byte state;

}
